<template>
    <div>
        <el-input v-model="val" />
        <el-button @click="$window.add({title: '新窗口', name: 'WindowExampleParams2', params: {'val': val}})">打开并传入一个值到新窗口</el-button>
    </div>
</template>

<script setup>
const val = ref('123')
</script>
